/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package requeteur;

import java.util.ArrayList;

/**
 *
 * @author Nargisse
 */
public class TermOccurReqCollection {
    
    ArrayList<TermOccurReq> listTermOcurReq;
    private ArrayList<Integer> listIdNoeud;
    
    public TermOccurReqCollection(){
        this.listTermOcurReq = new ArrayList<TermOccurReq>();
        this.listIdNoeud = new ArrayList<Integer>();
    }
    
    public void addTermOccurReq(TermOccurReq tor){
        this.listTermOcurReq.add(tor);
    }
    
    public ArrayList<TermOccurReq> getListTermOccurReq(){
        return this.listTermOcurReq;
    }
    
    public void addIdNoeud(int idNoeud){
        if(!this.listIdNoeud.contains(idNoeud)){
            this.listIdNoeud.add(idNoeud);
        }    
    }
    
    public ArrayList<Integer> getListIdNoeud(){
        return this.listIdNoeud;
    }
    
}
